<!-- <template>
  <a-layout>
    <a-layout-header class="header">
      <div class="logo" />
      <a-menu theme="dark" mode="horizontal" v-model:selectedKeys="selectedKeys1" :style="{ lineHeight: '64px' }">
        <a-menu-item key="1">课程管理系统</a-menu-item>

      </a-menu>
    </a-layout-header>
    <a-layout>
      <a-layout-sider width="200" style="background: #fff">
        <a-menu mode="inline" v-model:selectedKeys="selectedKeys2" v-model:openKeys="openKeys"
          :style="{ height: '100%', borderRight: 0 }">


          <a-menu-item key="1">管理员首页</a-menu-item>
          <a-menu-item key="2">系管理</a-menu-item>
          <a-menu-item key="3">专业管理</a-menu-item>
          <a-menu-item key="4">班级管理</a-menu-item>
          <a-menu-item key="5">学生管理</a-menu-item>
          <a-menu-item key="6">教师管理</a-menu-item>
          <a-menu-item key="7">课程管理</a-menu-item>
          <a-menu-item key="8">选课修改</a-menu-item>
          <a-menu-item key="9">管理员管理</a-menu-item>


        </a-menu>
      </a-layout-sider>
      <a-layout style="padding: 0 24px 24px">
        <a-breadcrumb style="margin: 16px 0">
      
        </a-breadcrumb>
        <a-layout-content :style="{ background: '#fff', padding: '24px', margin: 0, minHeight: '280px' }">
          Content
        </a-layout-content>
      </a-layout>
    </a-layout>
  </a-layout>
</template>
<script>
// import { UserOutlined, LaptopOutlined, NotificationOutlined } from '@ant-design/icons-vue';
import { defineComponent, ref } from 'vue';
export default defineComponent({
  components: {
    // UserOutlined,
    // LaptopOutlined,
    // NotificationOutlined,
  },
  setup() {
    return {
      selectedKeys1: ref(['2']),
      selectedKeys2: ref(['1']),
      collapsed: ref(false),
      openKeys: ref(['sub1']),
    };
  },
});
</script>
<style>
#components-layout-demo-top-side-2 .logo {
  float: left;
  width: 120px;
  height: 31px;
  margin: 16px 24px 16px 0;
  background: rgba(255, 255, 255, 0.3);
}

.ant-row-rtl #components-layout-demo-top-side-2 .logo {
  float: right;
  margin: 16px 0 16px 24px;
}

.site-layout-background {
  background: #fff;
}
</style> -->

<template>
  <a-layout>
    <a-layout-header class="header">
      <div class="logo" />
      <a-menu theme="dark" mode="horizontal" v-model:selectedKeys="selectedKeys1" :style="{ lineHeight: '64px' }">
        <a-menu-item key="1">课程管理系统</a-menu-item>
      </a-menu>
    </a-layout-header>
    <a-layout>
      <a-layout-sider width="200" style="background: #fff">
        <a-menu mode="inline" v-model:selectedKeys="selectedKeys2" v-model:openKeys="openKeys"
          :style="{ height: '100%', borderRight: 0 }">
          <a-menu-item key="1" @click="navigateTo('admin-home')">管理员首页</a-menu-item>
          <a-menu-item key="2" @click="navigateTo('admin-home2')">系管理</a-menu-item>
          <a-menu-item key="3" @click="navigateTo('major-management')">专业管理</a-menu-item>
          <a-menu-item key="4" @click="navigateTo('class-management')">班级管理</a-menu-item>
          <a-menu-item key="5" @click="navigateTo('student-management')">学生管理</a-menu-item>
          <a-menu-item key="6" @click="navigateTo('teacher-management')">教师管理</a-menu-item>
          <a-menu-item key="7" @click="navigateTo('course-management')">课程管理</a-menu-item>
          <a-menu-item key="8" @click="navigateTo('course-selection-modification')">选课修改</a-menu-item>
          <a-menu-item key="9" @click="navigateTo('admin-management')">管理员管理</a-menu-item>
        </a-menu>
      </a-layout-sider>
      <a-layout style="padding: 0 24px 24px">
        <a-breadcrumb style="margin: 16px 0">
        </a-breadcrumb>
        <a-layout-content :style="{ background: '#fff', padding: '24px', margin: 0, minHeight: '280px' }">
          <router-view></router-view>
        </a-layout-content>
      </a-layout>
    </a-layout>
  </a-layout>
</template>

<script>
// import { UserOutlined, LaptopOutlined, NotificationOutlined } from '@ant-design/icons-vue';
import Vue from 'vue';

export default {
  components: {
    // UserOutlined,
    // LaptopOutlined,
    // NotificationOutlined,
  },
  data() {
    return {
      selectedKeys1: ['2'],
      selectedKeys2: ['1'],
      collapsed: false,
      openKeys: ['sub1']
    };
  },
  methods: {
    navigateTo(path) {
      this.$router.push(`/list/${path}`);
    }
  }
};
</script>

<style>
#components-layout-demo-top-side-2 .logo {
  float: left;
  width: 120px;
  height: 31px;
  margin: 16px 24px 16px 0;
  background: rgba(255, 255, 255, 0.3);
}

.ant-row-rtl #components-layout-demo-top-side-2 .logo {
  float: right;
  margin: 16px 0 16px 24px;
}

.site-layout-background {
  background: #fff;
}
</style>